import request from '@/axios'

function formatRequestUri(name) {
  return 'flow/app/form/' + name
}

export function Sync(appId, data) {
  return request.post({
    url: formatRequestUri('Sync'),
    data: {
      Id: appId,
      Value: data
    }
  })
}

export function Gets(appId) {
  return request.get({
    url: formatRequestUri('Gets'),
    params: {
      appId
    }
  })
}
